const defaultState = {
    isLogin: false,
    findNavList: [],
    legendList: []
}
const commonReducers = (state = defaultState, action) => {
    const {type, payload} = action;
    switch (type) {
        case 'isLogin':
            state.isLogin = payload;
            break;
        case 'findNavList':
            state.findNavList = payload;
            break;
        case 'legendList':
            state.legendList = payload;
            break;
        default:
            break;
    }

    return state;
}

export default commonReducers;